package com.www.demo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class JobService {
    @Autowired
    private TestService testService;

    @Scheduled(fixedDelay = 60000)
    public void job(){
        testService.hello("client (2):"+new Date().toLocaleString());

    }
}
